package com.entity;

public class StorageQuery extends PageQuery {
    private String goodsName;  // 商品名称（模糊匹配）
    private Long supplierId;   // 供货商ID
    private Integer payStatus; // 付款状态（1：未支付，2：已支付）

    public StorageQuery(int pageNum, int pageSize, String goodsName, Long supplierId, Integer payStatus) {
        super(pageNum, pageSize);
        this.goodsName = goodsName;
        this.supplierId = supplierId;
        this.payStatus = payStatus;
    }

    public StorageQuery() {
        super.setPageNum(1);
        super.setPageSize(5);
    }

    public StorageQuery(String goodsName, Long supplierId, Integer payStatus) {
        this.goodsName = goodsName;
        this.supplierId = supplierId;
        this.payStatus = payStatus;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    @Override
    public String toString() {
        return "StorageQuery{" +
                "goodsName='" + goodsName + '\'' +
                ", supplierId=" + supplierId +
                ", payStatus=" + payStatus +
                '}';
    }


}
